package com.hougong.im.body.request;

import com.hougong.im.annotation.ProtocolField;
import com.hougong.im.body.BaseBodyCodec;

/**
 * 登录请求数据区
 */
public class LoginRequest extends BaseBodyCodec<LoginRequest> {
    @ProtocolField(sort = 1)
    private short userNameLen;
    @ProtocolField(sort = 2,lenField ="userNameLen" )
    private String userName;
    @ProtocolField(sort = 3)
    private short passwordLen;
    @ProtocolField(sort = 4,lenField = "passwordLen")
    private String password;

    @Override
    public String toString() {
        return "LoginRequest{" +
                "userNameLen=" + userNameLen +
                ", userName='" + userName + '\'' +
                ", passwordLen=" + passwordLen +
                ", password='" + password + '\'' +
                '}';
    }

    public short getUserNameLen() {
        return userNameLen;
    }

    public void setUserNameLen(short userNameLen) {
        this.userNameLen = userNameLen;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public short getPasswordLen() {
        return passwordLen;
    }

    public void setPasswordLen(short passwordLen) {
        this.passwordLen = passwordLen;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
